package com.dengqi.mymodule.activity.network.module;

import com.dengqi.mymodule.activity.network.bean.CityBean;
import com.module.retrofit.bean.ResponseBean;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;

/**
 * @Author: dengqi
 * @CreateDate: 2020-10-15 20:06
 * @Description: 城市模块：获取热门城市列表
 */
public interface CityContract {

    interface CityView{
        void onCityLists(List<CityBean> result);
    }


    interface Presenter{
        void getCityLists(CityView view);
    }

    interface Model{
        //获取热门/开通城市
        @GET("https://api.900sui.cn/v1/public/region/getOpenCity")
        Observable<ResponseBean<List<CityBean>>> getCityLists();

    }
}